<%-- 
    Document   : body
    Created on : Sep 6, 2011, 11:30:07 AM
    Author     : NGUYEN CONG BINH
--%>


<%@page import="POJO.LoaiSanPhamPOJO"%>
<%@page import="POJO.DanhMucPOJO"%>
<%@page import="POJO.SanPhamPOJO"%>
<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!--START BODY --> 
<section class="col-content">
    <% //sanphamAttribute
        ArrayList<SanPhamPOJO> sanpham = (ArrayList<SanPhamPOJO>) request.getAttribute("sanphamAttribute");
        ArrayList<LoaiSanPhamPOJO> dsloaisanpham = (ArrayList<LoaiSanPhamPOJO>) request.getAttribute("dsloaisanphamAttribute");
        for(int i =0; i<dsloaisanpham.size();i++){
            LoaiSanPhamPOJO lsp = dsloaisanpham.get(i);
            
    %>


    <article class="cdp-tab clearfix">



        <%-- <p class="title-cdp-tab"><a href="#"><%=lsp.getTenLoaiSanPham() %></a></p> --%>
        <p style="" class="btn-viewmore-cdp" id="dien_thoai_more"><a href="#">Xem thêm</a></p>			 					
        <div style="display: none;">
            <span id="view_more_34"><a href="#">Xem thêm</a></span>
        </div>

        <ul class="lstitle-cdp-tab clearfix" id="ul1">
            <li class="active"><a  href="#"> <%=lsp.getTenLoaiSanPham() %> </a></li> 
        </ul> 
        <div class="cdp-tab-inside">

            <ul class="clearfix" id="dien_thoai" style="">
                <%
                    for (int j = 0; j < sanpham.size(); j++) {
                        SanPhamPOJO sp = sanpham.get(j);
                        if(sp.getMaLoaiSanPham()==lsp.getMaLoaiSanPham()){

                %>
                <li class="cdp-product ">
                    <figure class="pic">
                        <a href="ProductDetailsController?Action=View&MaSanPham=<%=sp.getMaSanPham() %>">
                            <img alt="Sản phẩm" src="<%=sp.getHinhAnh()%>">
                        </a>
                    </figure>
                    <h2 class="name-product"><a href="#"><%=sp.getTenSanPham()%></a></h2>
                    <p class="price"><%=sp.getGiaBan()%></p>
                </li>
                <%}}%>
            </ul>
        </div>
    </article>
 <%}%>
    


</section>

<!--END BODY --> 